<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<html>
<body>
<script type="text/javascript" src="/admin/js/jscharts.js" charset="UTF-8"></script>
<script language="javascript" type="text/javascript">
function showChart(){
	var myChart = new JSChart('graph', 'line');
	myChart.setDataArray([
							<c:forEach var="c1" items="${chartList}" varStatus="vs">
								[${fn:substring(c1.key,8,10)},${c1.value}]
								<c:if test="${vs.count != chartList.size()}">
									,
								</c:if>
							</c:forEach>
	                      ], 'red');
	                      
	
	myChart.setAxisPaddingBottom(40);
	myChart.setTextPaddingBottom(10);
	//myChart.setAxisValuesNumberY(5);
	myChart.setTitle('累计登陆超过两次的人数统计');
	myChart.setIntervalStartY(0);
	//myChart.setIntervalEndY(2000);
	<c:forEach var="c1" items="${chartList}" varStatus="vs">
		myChart.setLabelX([${fn:substring(c1.key,8,10)},'${fn:substring(c1.key,8,10)}号']);
	</c:forEach>
	myChart.setAxisValuesNumberX(${chartList.size()});//设置x轴坐标有几个点
	myChart.setShowXValues(false);
	myChart.setTitleColor('#454545');
	myChart.setAxisValuesColor('#454545');
	myChart.setLineColor('#AB0707', 'red');
	myChart.setLineColor('#37AA03', 'green');
	myChart.setLineColor('#0033CC', 'blue');
	myChart.setLineColor('#FF9900', 'yellow');
	myChart.setLineColor('#EE00EE', 'violet');
	myChart.setLineColor('#000000', 'black');
	
	<c:forEach var="c1" items="${chartList}" varStatus="vs">
		myChart.setTooltip([${fn:substring(c1.key,8,10)}]);
	</c:forEach>
	myChart.setFlagColor('#9D16FC');
	myChart.setFlagRadius(3);
	myChart.setBackgroundImage('');
	myChart.setSize(900, 400);
	myChart.draw();
}

</script>
<form class="form-inline" action="reVisitCount.do">
	<button type="submit" class="btn">返回月份查询</button>
</form>
<div id="container">
	<div id="graph"></div>
</div>
<script type="text/javascript">
showChart();
</script>
</body>
</html>